package com.itheima.mapper;

import com.itheima.bean.Course;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CourseMapper {

   @Select("select c.id,c.name from stu_cr sc,course c where sc.cid=c.id and sc.sid=#{sid}")
    List<Course> findBySid(Integer sid);
}
